﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Entity
{
    /// <summary>
    /// 日志实体类
    /// </summary>
    public partial class Article
    {
        private int _articleID;

        /// <summary>
        /// 日志编号
        /// </summary>
        public int ArticleID
        {
            get { return _articleID; }
            set { _articleID = value; }
        }

        private int _categoryID;
        /// <summary>
        /// 分类编号
        /// </summary>
        public int CategoryID
        {
            get { return _categoryID; }
            set { _categoryID = value; }
        }

        private string _categoryName;
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName
        {
            get { return _categoryName; }
            set { _categoryName = value; }
        }

        private Category _category;
        /// <summary>
        /// 日志分类实体
        /// </summary>
        public Category Category
        {
            get
            {
                if (_category == null)
                {
                    _category = new Category();
                }
                return _category; }
            set { _category = value; }
        }

        private List<Comment> _comments;
        /// <summary>
        /// 日志评论列表
        /// </summary>
        public List<Comment> Comments
        {
            get
            {
                if (_comments == null)
                {
                    _comments = new List<Comment>();
                }
                return _comments;
            }
            set { _comments = value; }
        }

        private List<TrackBack> _trackBacks;
        /// <summary>
        /// 日志引用列表
        /// </summary>
        public List<TrackBack> TrackBacks
        {
            get
            {
                if (_trackBacks == null)
                {
                    _trackBacks = new List<TrackBack>();
                }
                return _trackBacks;
            }
            set { _trackBacks = value; }
        }

        private IList<string> _tags;
        /// <summary>
        /// 日志Tag列表
        /// </summary>
        public IList<string> Tags
        {
            get {
                if (_tags == null)
                    _tags = new List<string>();
                return _tags; }
            set { _tags = value; }
        }

        private string _title;

        /// <summary>
        /// 日志标题
        /// </summary>
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        private int _authorID;
        /// <summary>
        /// 作者编号
        /// </summary>
        public int AuthorID
        {
            get { return _authorID; }
            set { _authorID = value; }
        }

        private string _author;
        /// <summary>
        /// 作者名
        /// </summary>
        public string Author
        {
            get { return _author; }
            set { _author = value; }
        }

        private string _editMark;
        /// <summary>
        /// 编辑标记
        /// </summary>
        public string EditMark
        {
            get { return _editMark; }
            set { _editMark = value; }
        }

        private string _trackbackURL;
        /// <summary>
        /// 应用URL
        /// </summary>
        public string TrackbackURL
        {
            get { return _trackbackURL; }
            set { _trackbackURL = value; }
        }

        private string _content0;
        /// <summary>
        /// 日志摘要
        /// </summary>
        public string Content0
        {
            get { return _content0; }
            set { _content0 = value; }
        }

        private string _content1;
        /// <summary>
        /// 日志正文
        /// </summary>
        public string Content1
        {
            get { return _content1; }
            set { _content1 = value; }
        }

        private int _mode;
        /// <summary>
        /// 日志模式
        /// </summary>
        public int Mode
        {
            get { return _mode; }
            set { _mode = value; }
        }

        private bool _locked;
        /// <summary>
        /// 是否锁定
        /// </summary>
        public bool Locked
        {
            get { return _locked; }
            set { _locked = value; }
        }

        private bool _selected;
        /// <summary>
        /// 是否推荐日志
        /// </summary>
        public bool Selected
        {
            get { return _selected; }
            set { _selected = value; }
        }

        private string _ubbFlags;
        /// <summary>
        /// UBB标签
        /// </summary>
        public string UbbFlags
        {
            get { return _ubbFlags; }
            set { _ubbFlags = value; }
        }


        private DateTime _postTime;
        /// <summary>
        /// 发表时间
        /// </summary>
        public DateTime PostTime
        {
            get { return _postTime; }
            set { _postTime = value; }
        }

        private string _ip;
        /// <summary>
        /// 发表时IP
        /// </summary>
        public string IP
        {
            get { return _ip; }
            set { _ip = value; }
        }

        private int _commentCount;
        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentCount
        {
            get { return _commentCount; }
            set { _commentCount = value; }
        }

        private int _viewCount;
        /// <summary>
        /// 浏览数
        /// </summary>
        public int ViewCount
        {
            get { return _viewCount; }
            set { _viewCount = value; }
        }

        private int _trackbackCount;
        /// <summary>
        /// 引用数
        /// </summary>
        public int TrackBackCount
        {
            get { return _trackbackCount; }
            set { _trackbackCount = value; }
        }

        private bool _isTop;
        /// <summary>
        /// 是否置顶
        /// </summary>
        public bool IsTop
        {
            get { return _isTop; }
            set { _isTop = value; }
        }

        private bool _enableInRss;
        /// <summary>
        /// 是否显示在RSS中
        /// </summary>
        public bool EnableInRss
        {
            get { return _enableInRss; }
            set { _enableInRss = value; }
        }

       

    }
}
